<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">项目管理</a></li>
        <li><a href="{:U('Project/add',array('id'=>empty($item['id'])?'':$item['id']))}" target="_self">新增</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Project/index')}">

    </form>
    <form class="js-ajax-form" action="" method="post">

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <td>所属分类</td>
               <td>标题</td>
				<td>图片</td>
				<td>项目大小</td>
				<td>系统类型</td>
				<td>项目承建方</td>
				<td>预计每年发电量</td>
				<td>投资人</td>
				<td>创建时间</td>
				<td>操作</td>
            </tr>
            </thead>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.type_title}</td>
                    <td>{$vo.title}</td>
					<td><img src="{:sp_get_image_preview_url($vo['picture'])}"   width="100" /></td>
					<td>{$vo.project_size}</td>
					<td>{$vo.project_type}</td>
					<td>{$vo.project_contractor}</td>
					<td>{$vo.capacity}</td>
					<td>{$vo.investor}</td>
					<td>{:date("Y-m-d H:i:s",$vo["create_time"])}</td>
					<td><a href="{:U('Project/add',array('id'=>\$vo['id']))}">编辑</a> |<a href="{:U('Project/delete',array('id'=>\$vo['id']))}">删除</a> </td>
                </tr>
            </foreach>

        </table>

        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
    function refersh_window() {
        var refersh_time = getCookie('refersh_time');
        if (refersh_time == 1) {
            window.location = "{:U('AdminPost/index',$formget)}";
        }
    }

</script>
</body>
</html>